home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / pm / profile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.8 KB  |  60 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: Objective C PM class library
  4.  
  5.     Objective-C interface file for the class profile
  6.  
  7.     COPYRIGHT (C), 1995, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev: 0.1
  11.     1995-Jul-19            ___
  12.  
  13.  */
  14.  
  15. /*====================================================================
  16.                       Interface of class profile                      
  17. ====================================================================*/
  18.  
  19. #ifndef _PROFILE_H_
  20. #define _PROFILE_H_
  21.  
  22. #ifndef _OS2EMX_H
  23. #include <objc/os2.h>
  24. #endif
  25.  
  26. #ifndef _STDAPP_H_
  27. #include <pm/stdapp.h>
  28. #endif
  29.  
  30. @interface Profile : Object
  31. {
  32.   HINI profileHandle;
  33. }
  34.  
  35. /* -------------------------- Initialize -------------------------- */
  36. -init;
  37. -init: (char *) name forApp: (StdApp *) app;
  38. -initUserProfile;
  39. -initSystemProfile;
  40. /* ----------------------------- Free ----------------------------- */
  41. -free;
  42.  
  43. /* ----------- Methods for access to Instance Variables ----------- */
  44.  
  45. /* ------------------------ Public methods ------------------------ */
  46. -deleteKey: (char *) key section: (char *) section;
  47. -(void *) readData: (void *) data key: (char *) key section: (char *) section;
  48. -(void *) readData: (void *) data size: (long) size key: (char *) key section: (char *) section;
  49. -(char *) readString: (char *) data key: (char *) key section: (char *) section;
  50. -(char *) readString: (char *) data size: (long) size key: (char *) key section: (char *) section;
  51. -(long) sizeForKey: (char *) key section: (char *) section;
  52. -writeData: (void *) data size: (long) size key: (char *) key section: (char *) section;
  53. -writeString: (char *) data key: (char *) key section: (char *) section;
  54.  
  55. /* ----------------------- Private methods ------------------------ */
  56.  
  57. @end
  58.  
  59. #endif
  60.